import sqlobject
from coptur.database import *

class Url(sqlobject.SQLObject):
    #_idName='fooID'
    _connection = connection.connect
    title = sqlobject.StringCol(length=255)
    link = sqlobject.StringCol(length=255)
    site = sqlobject.ForeignKey('Site')

Url.createTable(ifNotExists=True)
